package com.tanhua.model.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @author Xiao
 * @version 1.0
 * @description 日志处理表实体类
 * @date 2021/11/5
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("tb_analysis_by_day")
public class Analysis implements Serializable {
    private static final long serialVersionUID = 1L;

    private Long id;
    private Date recordDate;    //日期
    private Integer numRegistered = 0;  //新注册用户数
    private Integer numActive = 0;  //活跃用户数
    private Integer numLogin = 0;   //登陆次数
    private Integer numRetention1d = 0; //次日留存用户数

    @TableField(fill = FieldFill.INSERT) //自动填充
    private Date created;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updated;
}
